getResultAsync

inline suspend fun <T> HttpClient.getResultAsync(urlString: String, noinline block: HttpRequestBuilder.() -> Unit = {}): Deferred<Result<T>>

Executes an asynchronous HTTP GET request using the provided URL.

Return

A Deferred> representing the asynchronous operation.

Parameters

urlString

The URL for the GET request.

block

Optional, allows customization of the request using HttpRequestBuilder.